package com.xiaoying.server.publish.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.xiaoying.server.publish.dao.UploadResultDao;
import com.xiaoying.server.publish.entity.UploadResult;


@Service("uploadResultService")
@Scope("prototype")
public class UploadResultService {


	@Autowired
	private UploadResultDao uploadResultDao;
	
	public UploadResultDao getUploadResultDao() {
		return uploadResultDao;
	}

	public void setUploadResultDao(UploadResultDao uploadResultDao) {
		this.uploadResultDao = uploadResultDao;
	}

	/**
	 * 查找所有
	 * @return
	 */
	public List<UploadResult> findAll(){		
		List<UploadResult> list = uploadResultDao.selectAll();		
		return list;		
	}
	
	/**
	 * 查找所有
	 * @return
	 */
	public Integer save(UploadResult uploadResult){		
		return uploadResultDao.insert(uploadResult);	
	}
	
	
}
